package com.bci.pwtz.service;

import java.util.List;

import com.bci.pwtz.common.util.PaginationList;
import com.bci.pwtz.exception.PwtzDatabaseException;
import com.bci.pwtz.mysql.model.CompanyMenu;

/**
 * 栏目服务 <br/>
 * <p>Description:<br/>
 *    <p>TODO 详细描述
 *
 * <p>For Examples <br/>
 * <PRE>
 * </PRE>
 * <p>
 */
public interface CompanyMenuService
{
    /**
     * 
      * 根据用父级栏目ID获取栏目信息 <br/>
     * <p>Description: TODO(详细描述)
     * <br/>
     * <p>Author: tonic<br/>
     * <p>Date: 2014-9-16-下午2:15:15<br/>
     * <p>
     * @param pid
     * @param pageSize
     * @param pageNo
     * @return
     * @throws PwtzDatabaseException   
     *
     */
    PaginationList<CompanyMenu> findMenuInfo(int pid, int pageSize, int pageNo) throws PwtzDatabaseException;

    /**
     * 一句话描述 <br/>
     * <p>Description: TODO(详细描述) 
     * <br/>
     * <p>Author: tonic<br/>
     * <p>Date: 2014-9-16-下午4:27:13<br/>
     * <p>
     * @param companyMenu
     * @return
     * @throws PwtzDatabaseException   
     * 
     */
    CompanyMenu add(CompanyMenu companyMenu) throws PwtzDatabaseException;
    
    List<CompanyMenu> findMenuByPidOrderByRank(int pid) throws PwtzDatabaseException;
    
    
}
